﻿@model Kwu.PlacesField.Settings.PlacesFieldSettings
@using Kwu.PlacesField.Settings;

<fieldset>
    <label for="@Html.FieldIdFor(m=>m.DisplayOptions)" class="forcheckbox">Display options</label>
    <select id="@Html.FieldIdFor(m=>m.DisplayOptions)" name="@Html.FieldIdFor(m=>m.DisplayOptions)">
        @Html.SelectOption(PlacesFieldDisplayOptions.NameOnly, Model.DisplayOptions == PlacesFieldDisplayOptions.NameOnly, "Name only")
        @Html.SelectOption(PlacesFieldDisplayOptions.NameAndLinkToMap, Model.DisplayOptions == PlacesFieldDisplayOptions.NameAndLinkToMap, "Name and Link to Map")
        @Html.SelectOption(PlacesFieldDisplayOptions.NameAndEmbeddedMap, Model.DisplayOptions == PlacesFieldDisplayOptions.NameAndEmbeddedMap, "Name and embedded Map")
    </select>
    @Html.ValidationMessageFor(m=>m.DisplayOptions)
</fieldset>